import db from "@src/dataBase/db";
import Sequelize from "sequelize";

// 权限
const Jurisdiction = db.define("Jurisdiction", {
        // 雪花id
        id: {type: Sequelize.STRING, primaryKey: true},
        // 权限名字
        name: {type: Sequelize.STRING},
        // 英文权限名
        englishName: {type: Sequelize.STRING},
        // 创建时间
        created_at: {type: Sequelize.BIGINT},
        // 更新时间
        updated_at: {type: Sequelize.BIGINT},
    },
    {
        // 禁止自动添加创建和更新字段
        timestamps: false,
        // 以下划线方式命名字段
        underscored: true,
        // 表名
        tableName: "jurisdiction"
    }
)

export default Jurisdiction